package com.objcat.servicesecurity.service;

import com.objcat.servicesecurity.entity.po.PowerPo;
import com.objcat.servicesecurity.entity.po.RolePo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.objcat.servicesecurity.entity.po.UserPo;
import com.objcat.servicesecurity.entity.vo.RoleVo;
import com.objcat.servicesecurity.entity.vo.UserVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author misheep
 * @since 2020-07-29
 */
public interface RoleService extends IService<RolePo> {
    /**
     * 获取用户的角色
     */
    public RoleVo getRole(UserPo userPo);
    /**
     * 获取权限所属角色
     */
    public List<RoleVo> getRole(PowerPo powerPo);
    /**
     * 转换成Vo
     */
    public RoleVo toRoleVo(RolePo rolePo);
    /**
     * 转换成VoList
     */
    public List<RoleVo> toRoleVoList(List<RolePo> rolePoList);

}
